<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String coursename=(String)request.getParameter("coursename");
	String stuclass=(String)request.getParameter("stuclass");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/main.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="css/bootstrap.min.css">  
<title>学生成绩查看页面</title>
</head>

<body>
<div class="top">
	<div class="lefttop">
		<h1 style="">学生信息</h1>
	</div>
	 <div class="middletop">
	<form action="Teacher?op=lookoutscore&&worknum=${username }" method="post" accept-charset="utf-8" class="bs-example bs-example-form" role="form">
        <div class="input-group">
            <span class="glyphicon glyphicon-user input-group-addon "></span>
            <select  class=form-control name="stuclass">
            	
            	<option  value=" " >下拉选择班级
            	</option>
            	
            	<option  value="14级01班">14级01班
            	</option>
            	<option  value="14级02班">14级02班
            	</option>
            </select>
        </div>
        <br>
        <div class="input-group">
            <span class="glyphicon glyphicon glyphicon-envelope input-group-addon "></span>
             <select  class=form-control name="coursename">
            	<option  value=" " >下拉选择课程
            	<option  value="java">java
            	</option>
            	<option value="c++">c++
            	</option>
            	<option  value="c#">c#
            	</option>
            	<option value="python">python
            	</option>
            </select>
        </div>
        <input type="submit" name="查询"/>
    </form>
    </div>
	<div class="righttop">
		<div class="sub_left">
			<ul>
				
			</ul>
			
		</div>
		<div class="sub_right"><p style>用户：${username}</p></div>
	</div>
</div>

<div class="main">
	
	<table id="customers">
	<tr>
	<th>学号</th>
	<th>姓名</th>
	<th>成绩</th>
	<th>绩点</th>
	<th>操作</th>
	</tr>
		
	<c:forEach items="${list}" var="item">
           <tr>
           <td>${item.stunum}</td><td>${item.stuname}</td><td>${item.score}</td><td>${item.gpa}</td>
          
           <td><a href="./ModifyScore.jsp?stunums=${item.stunum}&&stuname=${item.stuname}&&coursename=<%=coursename%>&&worknum=${username}&&stuclass=<%=stuclass %>">修改</a>
           <a href="./insertScore.jsp?stunums=${item.stunum}&&stuname=${item.stuname}&&coursename=<%=coursename%>&&worknum=${username}&&stuclass=<%=stuclass %>">录入</a>
           </td>
           </tr>
    
    </c:forEach>
    
	</table>
	
</div>

<div class="foot"></div>
</body>
</html>